<template>
  <div class="cate-wrap">
    <params-tab :routers="routers" />
    <router-view />
  </div>
</template>

<script>
import ParamsTab from '@/components/paramsTab'
export default {
  name: 'ParamsCate',
  components: {
    ParamsTab
  },
  data() {
    return {
    }
  },
  computed: {
    routers() {
      const routers = ['/system/params/cate/storedValue', '/system/params/cate/convenienceStore']
      const contents = ['储值', '便利店']
      const result = []
      routers.map((item, index) => {
        result.push({ url: item, name: contents[index] })
      })
      return result
    }
  },
  created() {
  }
}
</script>

<style lang="scss" scoped>
.cate-wrap {
  background-color: #fff;
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  right: 0;
  z-index: 10;
  box-sizing: border-box;
  overflow-y: scroll;
}
</style>
